package com.jindy.module.statement.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.jindy.module.statement.mapper.OtherExpensesMapper;
import com.jindy.module.statement.domain.OtherExpenses;
import com.jindy.module.statement.service.IOtherExpensesService;

/**
 * 收取客户其他费用Service业务层处理
 *
 * @author ruoyi
 * @date 2022-10-27
 */
@Service
public class OtherExpensesServiceImpl implements IOtherExpensesService
{
    @Autowired
    private OtherExpensesMapper otherExpensesMapper;

    /**
     * 查询收取客户其他费用
     *
     * @param id 收取客户其他费用主键
     * @return 收取客户其他费用
     */
    @Override
    public OtherExpenses selectOtherExpensesById(Long id)
    {
        return otherExpensesMapper.selectOtherExpensesById(id);
    }

    /**
     * 查询收取客户其他费用列表
     *
     * @param otherExpenses 收取客户其他费用
     * @return 收取客户其他费用
     */
    @Override
    public List<OtherExpenses> selectOtherExpensesList(OtherExpenses otherExpenses)
    {
        return otherExpensesMapper.selectOtherExpensesList(otherExpenses);
    }

    /**
     * 新增收取客户其他费用
     *
     * @param otherExpenses 收取客户其他费用
     * @return 结果
     */
    @Override
    public int insertOtherExpenses(OtherExpenses otherExpenses)
    {
        return otherExpensesMapper.insertOtherExpenses(otherExpenses);
    }

    /**
     * 修改收取客户其他费用
     *
     * @param otherExpenses 收取客户其他费用
     * @return 结果
     */
    @Override
    public int updateOtherExpenses(OtherExpenses otherExpenses)
    {
        return otherExpensesMapper.updateOtherExpenses(otherExpenses);
    }

    /**
     * 批量删除收取客户其他费用
     *
     * @param ids 需要删除的收取客户其他费用主键
     * @return 结果
     */
    @Override
    public int deleteOtherExpensesByIds(Long[] ids)
    {
        return otherExpensesMapper.deleteOtherExpensesByIds(ids);
    }

    /**
     * 删除收取客户其他费用信息
     *
     * @param id 收取客户其他费用主键
     * @return 结果
     */
    @Override
    public int deleteOtherExpensesById(Long id)
    {
        return otherExpensesMapper.deleteOtherExpensesById(id);
    }
}
